package com.tuanzi.loan.web.lazy.statistics;

import com.tuanzi.loan.business.service.statistics.WholeProcessPageUvStatService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.statistics.WholeProcessPageuvstatSearchRequest;
import com.tuanzi.loan.vo.response.statistics.WholeProcessPageuvstatSearchResponse;
import org.springframework.data.domain.Page;

public class WholeProcessPageUvStatLazyModel  extends BaseLazyDataModel<WholeProcessPageuvstatSearchRequest, WholeProcessPageuvstatSearchResponse> {

    private WholeProcessPageUvStatService service = SpringContextHolder.getBean(WholeProcessPageUvStatService.class);

    public WholeProcessPageUvStatLazyModel(WholeProcessPageuvstatSearchRequest wholeProcessPageuvstatSearchRequest) {
        super(wholeProcessPageuvstatSearchRequest);
    }

    @Override
    protected Page<WholeProcessPageuvstatSearchResponse> doLoad(PageSearcher<WholeProcessPageuvstatSearchRequest> pageSearcher) {
        return service.list(pageSearcher);
    }
}
